package org.abacus.synchronize;

public class Synchronize {
	private static final byte[] lock = new byte[] {};
	private boolean f = false;

	public synchronized void skip() {
		synchronized (lock) {
			f = true;
			look();
			System.out.println("skip." + this);
			System.out.println("f-->" + f);
		}
	}

	public synchronized void look() {
		synchronized (lock) {
			System.out.println("look." + this);
			System.out.println("f-->" + f);
		}
	}

}
